//
//  CircleTextTableViewCell.m
//  GLGW_Shoping
//
//  Created by whx on 2018/12/2.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "CircleTextTableViewCell.h"

@implementation CircleTextTableViewCell
{
    GLGWLabel *leftLab;
    GLGWLabel *righLab;
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self hiderLine:NO];
        [self setSepartionLineWith:lineModel_Half];
        CGFloat titleX = kWidthProportion_In_iPhoneTriploid(15);
        CGFloat titleY = kHeightProportion_In_iPhoneTriploid(17);
        CGFloat titleW = kWidthProportion_In_iPhoneTriploid(65);
        CGFloat titleH = kHeightProportion_In_iPhoneTriploid(20);
        GLGWLabel *titleLab = [[GLGWLabel alloc] initWithFrame:CGRectMake(titleX, titleY, titleW, titleH) theFont:SYSTEMFONT(14) theColor:kColor_Rule_Black inSuperView:self.contentView];
        titleLab.centerY = 22;
        titleLab.text = @"真实姓名";
        leftLab = titleLab;
        
        CGFloat title2W = kWidthProportion_In_iPhoneTriploid(200);
        CGFloat title2X = KScreenWidth - title2W - kWidthProportion_In_iPhoneTriploid(15);
        CGFloat title2Y = kHeightProportion_In_iPhoneTriploid(20);
        CGFloat title2H = kHeightProportion_In_iPhoneTriploid(20);
        GLGWLabel *titleLab2 = [[GLGWLabel alloc] initWithFrame:CGRectMake(title2X, title2Y, title2W, title2H) theFont:SYSTEMFONT(14) theColor:[UIColor colorWithHexString:@"#999999"] inSuperView:self.contentView];
        titleLab2.textAlignment = NSTextAlignmentRight;
        titleLab2.centerY = titleLab.centerY;
        righLab = titleLab2;
//        titleLab2.text = @"未认证";
        titleLab2.attributedText = [GLGWLabel addImageName:@"weirenzheng" theImageFram:CGRectMake(0, -3, kWidthProportion_In_iPhoneTriploid(14), kHeightProportion_In_iPhoneTriploid(14)) theTextString:@" 未认证" atImageIndex:0];
    }
    return self;
}

- (void)setLeftStr:(NSString *)leftStr
{
    _leftStr = leftStr;
    leftLab.text = leftStr;
}

- (void)setRightLab:(GLGWLabel *)rightLab
{
    _rightLab = rightLab;
    righLab = rightLab;
}
@end
